package de.tabiteuea.dbAccess;

/**
 * Frequency object
 * Represents a frequency
 * @author Erik Schreiber
 */
public class FrequencyObject {

	private int id;
    private int corpus_id;
    private String word;
    private int frequency;

    /**
     * Constructor without parameters
     */
    public FrequencyObject(){

    }

    /**
     * Constructor with params
     * @param newCorpus_id id of the related corpus
     * @param newWord the actual word
     * @param newFrequency frequency of the related word in the specified corpus
     */
    public FrequencyObject(int corpus_id, String word, int frequency){

    	this.corpus_id = corpus_id;
    	this.word = word;
    	this.frequency = frequency;
    	
    }    
    
    /**
     * getter for the id
     * @return id which represents the object in the database
     */
	public int getId() {
		return id;
	}

	/**
	 * setter for the id
	 * @param id which represents the object in the database
	 */
	public void setId(int id) {
		this.id = id;
	}

	public int getCorpus_id() {
		return corpus_id;
	}

	public void setCorpus_id(int corpus_id) {
		this.corpus_id = corpus_id;
	}

	public String getWord() {
		return word;
	}

	public void setWord(String word) {
		this.word = word;
	}

	public int getFrequency() {
		return frequency;
	}

	public void setFrequency(int frequency) {
		this.frequency = frequency;
	}
}
